

{% extends "bootstrap/base.html" %}
{% block title %}
    添加商品
{% endblock %}
{% include 'nav.html' %}
{% block content %}
<body background="{{ url_for('static', filename='images/background.jpg') }}">
<div class="container login-page" style="padding-top: 20px">
    <div class="row">
        <div class="table-responsive">
            <table class="table">
                <caption>客户列表</caption>
                <a href="{{ url_for('admin.add_client') }}">添加客户</a>
                <thead>
                    <tr>
                        <th>姓名</th>
                        <th>性别</th>
                        <th>电话1</th>
                        <th>电话2</th>
                        <th>微信</th>
                        <th>出生日期</th>
                        <th>地址</th>
                        <th>客户来源</th>
                        <th>客户状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                {% for client in clients %}
                    <tr>
                        <td>{{ client.name }}</td>
                        <td>{{ client.sex }}</td>
                        <td>{{ client.phone1 }}</td>
                        <td>{{ client.phone2 }}</td>
                        <td>{{ client.wechat }}</td>
                        <td>{{ client.brithdy }}</td>
                        <td>{{ client.address }}</td>
                        <td>{{ client.infosource.name }}</td>
                        <td>{{ client.statuses.name }}</td>
                        <td><a href="#">删除</a></td>
                    </tr>
                {% endfor %}
                </tbody>
        </table>
        </div>
    </div>
</div>
</body>
{% endblock %}
